package conf

import (
	"github.com/sony/sonyflake"
)
var Sonyflake *sonyflake.Sonyflake
func InitCreateID(SevrerID int64) {
	var noMachineID sonyflake.Settings
	noMachineID.MachineID = func() (uint16, error) {
		return uint16(SevrerID), nil
	}
	Sonyflake = sonyflake.NewSonyflake(noMachineID)
	return
}
func NextID() (ret uint64) {
	ret, _ = Sonyflake.NextID()
	return
}
